<?php
class Accountsstatus_Data_Update implements Accountsstatus_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "UPDATE account_status SET status_name = '".$variables['post']['status_name']."', status_description = '".$variables['post']['status_description']."' WHERE status_name = '".$variables['post']['old_status_name']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
